larger model; fix bootstrap error errors

Andrew Cantino 10 years ago
parent
commit
815c6d6b86

+ 1 - 1
app/assets/javascripts/pages/agent-show-page.js.coffee

@@ -21,7 +21,7 @@ class @AgentShowPage
21 21
           e.preventDefault()
22 22
           $("body").append """
23 23
             <div class="modal fade" tabindex="-1" id='dynamic-modal' role="dialog" aria-labelledby="dynamic-modal-label" aria-hidden="true">
24
-              <div class="modal-dialog">
24
+              <div class="modal-dialog modal-lg">
25 25
                 <div class="modal-content">
26 26
                   <div class="modal-header">
27 27
                     <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>

+ 6 - 4
app/assets/stylesheets/application.css.scss.erb

@@ -29,13 +29,15 @@ body { padding-top: 60px; }
29 29
 
30 30
 /* Rails scaffold style compatibility */
31 31
 #error_explanation {
32
-  @extend .alert;
33
-  @extend .alert-error;
34
-  @extend .alert-block;
32
+  color: #f00;
33
+  ul {
34
+    list-style: none;
35
+    margin: 0 0 18px 0;
36
+  }
35 37
 }
36 38
 
37 39
 .field_with_errors {
38
-  @extend .control-group.error;
40
+  @extend .has-error;
39 41
 }
40 42
 
41 43
 .select2 {

+ 1 - 1
app/models/agents/website_agent.rb

@@ -209,7 +209,7 @@ module Agents
209 209
         }
210 210
       end
211 211
     rescue => e
212
-      error e.message
212
+      error "Error when fetching url: #{e.message}\n#{e.backtrace.join("\n")}"
213 213
     end
214 214
 
215 215
     def receive(incoming_events)

+ 1 - 1
app/views/logs/index.html.erb

@@ -3,7 +3,7 @@
3 3
     <tr>
4 4
       <th>Message</th>
5 5
       <th>When</th>
6
-      <th></th>
6
+      <th width="200px"></th>
7 7
     </tr>
8 8
 
9 9
     <% @logs.each do |log| %>